package com.loves.admin.dto;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.*;

public class RegisterDTO {

    @NotEmpty(message = "邮箱不能为空！")
    @Email(message = "邮箱格式不对！")
    private String mailName;

    @NotEmpty
    @Length(min = 8, max = 16, message = "密码长度需要8-16位！")
    private String password;

    @NotEmpty
    @Length(min = 4, max = 4,message = "验证码长度不对！")
    private String code;

    public String getMailName() {
        return mailName;
    }

    public void setMailName(String mailName) {
        this.mailName = mailName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
